package cn.cyty.midway.product.po;

import com.tuweisoft.tt.potts.pump.oo.annotion.Entity;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.Primarykey;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.choose.Item;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.choose.PBoolean;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.num.PInteger;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.text.Text;
import com.tuweisoft.tt.potts.pump.oo.runtime.PumpObject;

@Entity(id="T_ATTRIBUTE_VALUE", title="类目属性值", dataField="id")
public class AttributeValue implements PumpObject {

	private static final long serialVersionUID = -7194022080200276066L;

	@PInteger(id="VALUE_ID", title="编号", required=true, unique=true)
	@Primarykey(increment=true)
	private String id;
	
	@Item(id="VALUE_CATEGORY", title="商品类目", required=true)
	private ProductCategory category;
	
	@Item(id="VALUE_ATTRIBUTE", title="类目属性", required=true)
	private ProductAttribute attribute;
	
	@Text(id="VALUE_NAME", title="参数", minLength=255)
	private String name;
	
	@PInteger(id="VALUE_INDEX", title="排序")
	private int index;
	
	@Text(id="VALUE_KEYWORD", title="关键字")
	private String keyword;
	
	@PBoolean(id="VALUE_ENABLE", title="可用性")
	private boolean enable;
	
	@Text(id="VALUE_NOTE", title="备注")
	private String note;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public ProductCategory getCategory() {
		return category;
	}

	public void setCategory(ProductCategory category) {
		this.category = category;
	}

	public ProductAttribute getAttribute() {
		return attribute;
	}

	public void setAttribute(ProductAttribute attribute) {
		this.attribute = attribute;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	
}
